//
//  ByteBufferWriter.h
//  ByteBuf
//
//  Created by 周最新 on 15/8/29.
//  Copyright (c) 2015年 zzx. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ByteBufferWriter : NSObject

@property (strong, nonatomic, readonly) NSMutableData *data;

- (void)writeByte:(char)byte;
- (void)writeBytes:(NSData *)bytes;

- (void)writeUInt16:(uint16_t)value; //unsigned short
- (void)writeUInt32:(uint32_t)value; //unsigned int

@end
